import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Index from './views/Index.vue'
import SalesmanList from './views/SalesMan/SalesmanList.vue'
import SalesmanDetail from './views/SalesMan/SalesmanDetail.vue'
import ShopList from './views/Shop/ShopList.vue'
import OpenStore from './views/OpenStore/OpenStore.vue'
import Step2 from './views/OpenStore/Qualification.vue'
import Step3 from './views/OpenStore/Settlement.vue'
import ShopDetail from './views/Shop/ShopDetail.vue'
import ShopAuditDetail from './views/Shop/ShopAuditDetail.vue'
import ShopAudit from './views/Shop/ShopAudit.vue'
import ShopInfo from './views/Shop/ShopInfo.vue'
import Download from './views/Download/Download.vue'

let routes = [{
    path: '/login',
    component: Login,
    name: '',
    hidden: true
}, {
    path: '/404',
    component: NotFound,
    name: '404',
    hidden: true
}, {
    path: '/',
    component: Home,
    redirect: '/index',
    name: '',
    hidden: true
}, {
    path: '/index',
    component: Home,
    children: [
        { path: '/', component: Index, name: '主页' }
    ],
    hidden: true
},
    {
    path: '/',
    component: Home,
    name: '店铺管理',
    iconCls: 'fa fa-shopping-bag', //图标样式class
    children: [{
        path: '/shopList',
        component: ShopList,
        name: '店铺列表'
    },{
        path: '/shopAudit',
        component: ShopAudit,
        name: '店铺审核'
    }, {
        path: '/shopAuditDetail',
        component: ShopAuditDetail,
        name: '店铺详情',
        hidden: true
    },{
        path: '/shopInfo',
        component: ShopInfo,
        name: '查看店铺详情',
        hidden: true
    },{
		    path: '/OpenStore',
		    component: OpenStore,
		    name: '开店',
		    hidden: true,
    },{
		    path: '/step2',
		    component: Step2,
		    name: '开店1',
		    hidden: true,
    },{
		    path: '/step3',
		    component: Step3,
		    name: '开店2',
		    hidden: true,
    },]
},{
		path: '/',
		component: Home,
		name: '业务员管理',
		iconCls: 'fa fa-user-o', //图标样式class
		children: [{
			path: '/SalesmanList',
			component: SalesmanList,
			name: '业务员列表'
		},
        {
            path: '/SalesmanDetail',
            component: SalesmanDetail,
            name: '业务员详情',
            hidden: true,
        }]
    },{
        path: '/',
        component: Home,
        name: '',
        leaf: true, //只有一个节点
        iconCls: 'fa fa-download',
        children: [
            { path: '/download', component: Download, name: '资料下载' }
        ]
    },
    {
    path: '/',
    component: Home,
    name: '',
    hidden: true,
    children: [
        { path: '/shopDetail', component: ShopDetail, name: '新增店铺' },
    ]
},
    {
    path: '*',
    hidden: true,
    redirect: { path: '/404' }
}];

export default routes;